package com.kmxd.ams.client.system.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serializable;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import lombok.Data;

/**
 * 用户配置表
 *
 * @author nickbi
 * @since 2022-07-16
 */
@Schema(description = "用户配置表对象")
@Data
public class SysUserConfigAddDTO implements Serializable {

  private static final long serialVersionUID = 1L;

  /** 用户id */
  @Schema(description = "用户id")
  private Long userId;

  /** 配置名称 */
  @Schema(description = "配置名称")
  @NotBlank(message = "配置名称不能为空")
  @Size(max = 256, message = "配置名称长度不能超过256个字符")
  private String name;

  /** 配置标识 */
  @Schema(description = "配置标识")
  @NotBlank(message = "配置标识不能为空")
  @Size(max = 512, message = "配置标识长度不能超过512个字符")
  private String code;

  /** 配置内容 */
  @Schema(description = "配置内容")
  @NotBlank(message = "配置内容不能为空")
  private String content;
}
